home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / AEparticleSamplerInfoTemplat < prev    next >
Encoding:
Text File  |  2003-07-17  |  4.7 KB  |  126 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //
  20. //  Creation Date:    May 21, 1997
  21. //  Author:        sw
  22. //
  23. //  Procedure Name:
  24. //    AEsamplerInfoTemplate
  25. //
  26. //  Description Name;
  27. //    Creates the attribute editor controls for the samplerInfo Node
  28. //
  29. //  Input Value:
  30. //    nodeName 
  31. //
  32. //  Output Value:
  33. //    None
  34. // 
  35.  
  36. global proc uvDimingControl ( string $nodeName )
  37. {
  38.     string $nodeAttr = $nodeName + ".outUvType";
  39.     int $outUvType = `getAttr $nodeAttr`;
  40.     if( $outUvType == 1 ) {
  41.         editorTemplate -dimControl $nodeName "normalizationMethod" false;
  42.         editorTemplate -dimControl $nodeName "normalizationValue"  false;
  43.     } else {
  44.         editorTemplate -dimControl $nodeName "normalizationMethod" true;
  45.         editorTemplate -dimControl $nodeName "normalizationValue"  true;
  46.     }
  47. }
  48.  
  49. global proc AEparticleSamplerInfoTemplate ( string $nodeName )
  50. {
  51.     AEswatchDisplay $nodeName;
  52.     editorTemplate -beginScrollLayout;
  53.         editorTemplate -beginLayout "Editable Sampler Info Attributes" -collapse 0;
  54.             editorTemplate -addControl "outUvType" uvDimingControl;
  55.             editorTemplate -addControl "normalizationMethod";
  56.             editorTemplate -addControl "normalizationValue";
  57.             editorTemplate -addControl "inverseOutUv";
  58.         editorTemplate -endLayout;
  59.  
  60.         editorTemplate -beginLayout "Common Read-Only Attributes" -collapse 1;
  61.             editorTemplate -addControl "outColor";
  62.             editorTemplate -addControl "outTransparency";
  63.             editorTemplate -addControl "outIncandescence";
  64.         editorTemplate -endLayout;
  65.  
  66.         editorTemplate -beginLayout "More Read-Only Scalar Attributes" -collapse 1;
  67.             editorTemplate -addControl "ageNormalized";
  68.             editorTemplate -addControl "colorRed";
  69.             editorTemplate -addControl "colorGreen";
  70.             editorTemplate -addControl "colorBlue";
  71.             editorTemplate -addControl "opacityPP";
  72.             editorTemplate -addControl "opacity";
  73.             editorTemplate -addControl "particleId";
  74.             editorTemplate -addControl "finalLifespanPP";
  75.             editorTemplate -addControl "lifespanPP";
  76.             editorTemplate -addControl "lifespan";
  77.             editorTemplate -addControl "age";
  78.             editorTemplate -addControl "birthTime";
  79.             editorTemplate -addControl "parentU";
  80.             editorTemplate -addControl "parentV";
  81.             editorTemplate -addControl "collisionU";
  82.             editorTemplate -addControl "collisionV";
  83.             editorTemplate -addControl "radiusPP";
  84.             editorTemplate -addControl "radius";
  85.         editorTemplate -endLayout;
  86.  
  87.         editorTemplate -beginLayout "More Read-Only Vector Attributes" -collapse 1;
  88.             editorTemplate -addControl "rgbPP";
  89.             editorTemplate -addControl "incandescencePP";
  90.             editorTemplate -addControl "incandescence";
  91.             editorTemplate -addControl "acceleration";
  92.             editorTemplate -addControl "force";
  93.             editorTemplate -addControl "position";
  94.             editorTemplate -addControl "worldPosition";
  95.             editorTemplate -addControl "birthPosition";
  96.             editorTemplate -addControl "birthWorldPosition";
  97.             editorTemplate -addControl "velocity";
  98.             editorTemplate -addControl "worldVelocity";
  99.         editorTemplate -endLayout;
  100.  
  101.         editorTemplate -beginLayout "More Read-Only User Defined Float Attributes" -collapse 1;
  102.             editorTemplate -addControl "userScalar1PP";
  103.             editorTemplate -addControl "userScalar2PP";
  104.             editorTemplate -addControl "userScalar3PP";
  105.             editorTemplate -addControl "userScalar4PP";
  106.             editorTemplate -addControl "userScalar5PP";
  107.         editorTemplate -endLayout;
  108.  
  109.         editorTemplate -beginLayout "More Read-Only User Defined Vector Attributes" -collapse 1;
  110.             editorTemplate -addControl "userVector1PP";
  111.             editorTemplate -addControl "userVector2PP";
  112.             editorTemplate -addControl "userVector3PP";
  113.             editorTemplate -addControl "userVector4PP";
  114.             editorTemplate -addControl "userVector5PP";
  115.         editorTemplate -endLayout;
  116.  
  117.         editorTemplate -suppress "particleAttrArray";
  118.         editorTemplate -suppress "outUvCoord";
  119.  
  120.         // include/call base class/node attributes
  121.         AEdependNodeTemplate $nodeName;
  122.  
  123.     editorTemplate -addExtraControls;
  124.     editorTemplate -endScrollLayout;
  125. }
  126.